home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / mysql-test / t / sel000033.test < prev    next >
Encoding:
Text File  |  2003-01-21  |  357 b   |  19 lines  |  [TEXT/ttxt]

  1. # sel000033
  2. #
  3. # Versions
  4. # --------
  5. #   3.22
  6. #   3.23
  7. #
  8. # Description
  9. # -----------
  10. # test for a bug with in() and unique key
  11.  
  12. drop table if exists t1;
  13. create  table t1 (id int(10) primary key);
  14. insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9);
  15.  
  16. select id from t1 where id in (2,5,9) ;
  17. select id from t1 where id=2 or id=5 or id=9 ;
  18. drop table t1;
  19.